﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Led: Led Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                Examples using state machines generated by StateBuilderCpp
            </h1>
            <h3>
                Led: Led Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">Led Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Led" -->
<p><code>#include &lt;<a class="el" href="_led_8h_source.html">Led.h</a>&gt;</code></p>

<p><a href="class_led-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_led.html#a13f58f691eaa4b8b964a2b245e8dc1af">Led</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_led.html#a9685f23dc5ca68091579ab621c44753a">~Led</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_led.html#af2c8e9e09c8d4d03c05a5c5907503cbf">On</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_led.html#a2a2812f03d8268132b6d19c7f9e9239b">Off</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_led_private.html">LedPrivate</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_led.html#a52ed1e413fbdff2e9f8e0af2a481eb79">m_pPrivate</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LedContext *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_led.html#aeca205f6f02ea434d401c645eed56ffb">m_pContext</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_led_8h_source.html#l00007">7</a> of file <a class="el" href="_led_8h_source.html">Led.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a13f58f691eaa4b8b964a2b245e8dc1af"></a><!-- doxytag: member="Led::Led" ref="a13f58f691eaa4b8b964a2b245e8dc1af" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Led::Led </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_led_8cpp_source.html#l00010">10</a> of file <a class="el" href="_led_8cpp_source.html">Led.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_led.html#a52ed1e413fbdff2e9f8e0af2a481eb79">m_pPrivate</a> = <span class="keyword">new</span> <a class="code" href="class_led_private.html">LedPrivate</a>();
    <a class="code" href="class_led.html#aeca205f6f02ea434d401c645eed56ffb">m_pContext</a> = <span class="keyword">new</span> LedContext(*<a class="code" href="class_led.html#a52ed1e413fbdff2e9f8e0af2a481eb79">m_pPrivate</a>);
    <a class="code" href="class_led.html#aeca205f6f02ea434d401c645eed56ffb">m_pContext</a>-&gt;SetObserver(fsm::ObserverStd::GetInstance());
    <a class="code" href="class_led.html#aeca205f6f02ea434d401c645eed56ffb">m_pContext</a>-&gt;EnterInitialState();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a9685f23dc5ca68091579ab621c44753a"></a><!-- doxytag: member="Led::~Led" ref="a9685f23dc5ca68091579ab621c44753a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Led::~Led </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_led_8cpp_source.html#l00018">18</a> of file <a class="el" href="_led_8cpp_source.html">Led.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <span class="keyword">delete</span> <a class="code" href="class_led.html#aeca205f6f02ea434d401c645eed56ffb">m_pContext</a>;
    <span class="keyword">delete</span> <a class="code" href="class_led.html#a52ed1e413fbdff2e9f8e0af2a481eb79">m_pPrivate</a>;
}
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a2a2812f03d8268132b6d19c7f9e9239b"></a><!-- doxytag: member="Led::Off" ref="a2a2812f03d8268132b6d19c7f9e9239b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Led::Off </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_led_8cpp_source.html#l00029">29</a> of file <a class="el" href="_led_8cpp_source.html">Led.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_led.html#aeca205f6f02ea434d401c645eed56ffb">m_pContext</a>-&gt;Off();
}
</pre></div>
</div>
</div>
<a class="anchor" id="af2c8e9e09c8d4d03c05a5c5907503cbf"></a><!-- doxytag: member="Led::On" ref="af2c8e9e09c8d4d03c05a5c5907503cbf" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Led::On </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_led_8cpp_source.html#l00024">24</a> of file <a class="el" href="_led_8cpp_source.html">Led.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
    <a class="code" href="class_led.html#aeca205f6f02ea434d401c645eed56ffb">m_pContext</a>-&gt;On();
}
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="aeca205f6f02ea434d401c645eed56ffb"></a><!-- doxytag: member="Led::m_pContext" ref="aeca205f6f02ea434d401c645eed56ffb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LedContext* <a class="el" href="class_led.html#aeca205f6f02ea434d401c645eed56ffb">Led::m_pContext</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_led_8h_source.html#l00020">20</a> of file <a class="el" href="_led_8h_source.html">Led.h</a>.</p>

</div>
</div>
<a class="anchor" id="a52ed1e413fbdff2e9f8e0af2a481eb79"></a><!-- doxytag: member="Led::m_pPrivate" ref="a52ed1e413fbdff2e9f8e0af2a481eb79" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_led_private.html">LedPrivate</a>* <a class="el" href="class_led.html#a52ed1e413fbdff2e9f8e0af2a481eb79">Led::m_pPrivate</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_led_8h_source.html#l00019">19</a> of file <a class="el" href="_led_8h_source.html">Led.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_led_8h_source.html">Led.h</a></li>
<li><a class="el" href="_led_8cpp_source.html">Led.cpp</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
